package org.docmanagement.forms;

import org.apache.commons.io.FilenameUtils;


/**
 * @author Mektoub
 */
public class FileForm extends ElementForm
{
	private static final long serialVersionUID = 1L;

	public FileForm()
	{
	    super();
	}
    /**
     * @see org.docmanagement.forms.ElementForm#getType()
     */
    public char getType()
    {
        return FILE_TYPE;
    }
	/**
	 * Returns the extension of the file
	 * @return String
	 */
	public String getIconType()
	{
		return FilenameUtils.getExtension(getFilepath());
	}
	/**
	 * @return
	 */
	public String getFilename()
	{
	    return FilenameUtils.getName(getFilepath());
	}
}
